﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheemsControl.Models
{
    /// <summary>
    /// 产线信息
    /// </summary>
    public class ProductionLineData
    {
        public ProductionLineData()
        {
            this.minPosition = 0;
            this.maxPosition = 100;
        }

        /// <summary>
        /// 最小位置
        /// </summary>
        public double minPosition {  get; set; }

        /// <summary>
        /// 最大位置
        /// </summary>
        public double maxPosition { get; set; }

        /// <summary>
        /// 提示信息
        /// </summary>
        public List<ReminderInformation> reminderInformations { get; set; }
    }

    /// <summary>
    /// 单条提示信息
    /// </summary>
    public class ReminderInformation
    {
        /// <summary>
        /// 图片路径
        /// </summary>
        public string source { get; set; }

        /// <summary>
        /// 发生位置
        /// </summary>
        public double position { get; set; }

        /// <summary>
        /// 提示类型
        /// </summary>
        public TipType tipType { get; set; }
    }

    /// <summary>
    /// 提示类型
    /// </summary>
    public enum TipType
    {
        None = 0,
        Warning = 1,
        Alarm = 2,
    }
}
